<?php
#显示向前向后
function pre_next()
{
   echo "<div class='prenext'>";
   echo "\n";
   echo "<div class='pre'>";
   previous_posts_link("P");
   echo "</div>";
   echo "<div class='next'>";
   next_posts_link("N");
   echo "</div>"; 
   echo "\n"; 
   echo "<div class='up' onmousedown='uf=setInterval(&#39;scrollBy(0,-5)&#39;,10)' onmouseup='clearInterval(uf)' style='cursor:pointer;'>U</div>";
   echo "<div class='down' onmousedown='df=setInterval(&#39;scrollBy(0,5)&#39;,10)' onmouseup='clearInterval(df)' style='cursor:pointer;'>D</div>";
   echo "</div>";
   echo "\n";   
}

function pre_next_single()
{
   echo "<div class='prenext'>";
   echo "\n";
   echo "<div class='pre'>";
   previous_post_link('%link','P');
   echo "</div>";
   echo "<div class='next'>";
   next_post_link('%link','N'); 
   echo "</div>"; 
   echo "\n"; 
   echo "<div class='up' onmousedown='uf=setInterval(&#39;scrollBy(0,-5)&#39;,10)' onmouseup='clearInterval(uf)' style='cursor:pointer;'>U</div>";
   echo "<div class='down' onmousedown='df=setInterval(&#39;scrollBy(0,5)&#39;,10)' onmouseup='clearInterval(df)' style='cursor:pointer;'>D</div>";
   echo "</div>";
   echo "\n";
}
?>